com.rscja.team.qcom.deviceapi

## Class RFIDWithUHFA4_qcom

- java.lang.Object
- - com.rscja.deviceapi.UhfBase
  - - com.rscja.team.qcom.deviceapi.RFIDWithUHFUART_qcom
    - - com.rscja.team.qcom.deviceapi.RFIDWithUHFAxBase_qcom
      - - com.rscja.team.qcom.deviceapi.RFIDWithUHFA4_qcom

- All Implemented Interfaces:
    IHandheldRFID, IMultipleAntenna, IRFIDWithUHFA4, ISingleAntenna, IUHF, IUHFOfAndroidUart, IURAxOfAndroidUart
  Direct Known Subclasses:
    UHFTemperatureTagsAPI_qcom

      public class RFIDWithUHFA4_qcom
      extends RFIDWithUHFAxBase_qcom
      implements IRFIDWithUHFA4, IUHFOfAndroidUart

  UHF模块 A4操作类
  UHF module operation type

  注意：
  Attention:
  1、使用前请确认您的机器已安装此模块。
  1. Make sure this module is installed before using your device.
  2、要正常使用模块需要在\libs\armeabi\, \libs\arm64-v8a\目录放置libDeviceAPI.so文件
  2. Put libDeviceAPI.so file in directory \libs\armeabi\ , \libs\arm64-v8a\ then module can be used normally.
  3、在操作设备前需要调用 `#init()` 打开设备，使用完后调用 `free()` 关闭设备
  3. call `#init()` to switch on the device before operating the device, call `free()` to switch off device after using.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class com.rscja.deviceapi.UhfBase

      `UhfBase.ErrorCode`

  - ### Field Summary

    - ### Fields inherited from interface com.rscja.deviceapi.interfaces.IUHF

      `Bank_EPC, Bank_RESERVED, Bank_TID, Bank_USER, LockBank_ACCESS, LockBank_EPC, LockBank_KILL, LockBank_TID, LockBank_USER, LockMode_LOCK, LockMode_OPEN, LockMode_PLOCK, LockMode_POPEN, UPDATE_UHF`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `buzzer()` 成功的通知提示(发出提示音) Success Notification Sound (Play Sound)
    `boolean` | `free()` 关闭UHF模块 Switch off UHF module
    `java.util.List<AntennaState>` | `getANT()` 获取当前设置的天线 Acquire current antenna
    `static RFIDWithUHFA4_qcom` | `getInstance()`
    `java.util.List<GPIStateEntity>` | `inputStatus()` input status
    `void` | `led()` 成功的通知提示(指示灯闪烁) Success Notification Sound (flashing light)
    `boolean` | `output1Off()` gpio 3 off
    `boolean` | `output1On()` gpio 3 on
    `boolean` | `output2Off()` gpio 4 off
    `boolean` | `output2On()` gpio 4 on
    `boolean` | `output3Off()` gpio OptoCoupler3 off
    `boolean` | `output3On()` gpio OptoCoupler3 on
    `boolean` | `output4Off()` gpio OptoCoupler4 off
    `boolean` | `output4On()` gpio OptoCoupler4 on
    `boolean` | `outputWgData0Off()` gpio WgData0 off
    `boolean` | `outputWgData0On()` gpio WgData0 on
    `boolean` | `outputWgData1Off()` gpio WgData1 off
    `boolean` | `outputWgData1On()` gpio WgData1 on
    `boolean` | `setANT(java.util.List<AntennaState> antStatus)` 设置天线号 Setup antenna number
    `void` | `successNotify()` 成功的通知提示(指示灯闪烁同时发出提示音) Success Notification Sound (Play notification tune when light flashing)

    - ### Methods inherited from class com.rscja.team.qcom.deviceapi.RFIDWithUHFAxBase_qcom

      `buzzerOn, getAntennaConnectState, getAntennaPower, getAntennaPower, readTagFromBuffer, setAntennaPower, startInventoryTag`

    - ### Methods inherited from class com.rscja.team.qcom.deviceapi.RFIDWithUHFUART_qcom

      `blockWriteData, eraseData, eraseData, factoryReset, generateLockCode, getConnectStatus, getCW, getEPCAndTIDUserMode, getEPCAndTIDUserModeEx, getErrCode, getFastInventoryMode, getFrequencyMode, getGen2, getHardwareVersion, getLBTMode, getPower, getProtocol, getRFLink, getTagLocate, getTemperature, getVersion, init, inventorySingleTag, inventorySingleTag, isInventorying, isPowerOn, killTag, killTag, lockMem, lockMem, readData, readData, setConnectionStatusCallback, setCW, setDynamicDistance, setEPCAndTIDMode, setEPCAndTIDUserMode, setEPCAndTIDUserMode, setEPCAndTIDUserModeEx, setEPCAndUserReservedModeEx, setEPCMode, setFastID, setFastInventoryMode, setFilter, setFreHop, setFrequencyMode, setGen2, setGen2, setInventoryCallback, setLBTMode, setPower, setPowerOnBySystem, setProtocol, setRFLink, setTagFocus, setUart, startInventoryTag, startLocation, startRadarLocation, stopInventory, stopLocation, stopRadarLocation, uhfBlockPermalock, uhfJump2Boot, uhfJump2Boot, uhfStartUpdate, uhfStopUpdate, uhfUpdating, UHFVerifyVoltage, writeData, writeData, writeDataToEpc, writeDataToEpc`

    - ### Methods inherited from class com.rscja.deviceapi.UhfBase

      `readTcpServiceState, setOnLowBatteryListener`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface com.rscja.deviceapi.interfaces.IMultipleAntenna

      `getAntennaPower, getAntennaPower, setAntennaPower`

    - ### Methods inherited from interface com.rscja.deviceapi.interfaces.IUHFOfAndroidUart

      `getErrCode, getHardwareVersion, isPowerOn, setOnLowBatteryListener, setPowerOnBySystem, setUart`

    - ### Methods inherited from interface com.rscja.deviceapi.interfaces.IUHF

      `blockWriteData, eraseData, eraseData, factoryReset, generateLockCode, getConnectStatus, getCW, getEPCAndTIDUserMode, getFastInventoryMode, getFrequencyMode, getGen2, getProtocol, getRFLink, getTemperature, getVersion, init, inventorySingleTag, isInventorying, killTag, killTag, lockMem, lockMem, readData, readData, readTagFromBuffer, setConnectionStatusCallback, setCW, setEPCAndTIDMode, setEPCAndTIDUserMode, setEPCAndTIDUserMode, setEPCMode, setFastID, setFastInventoryMode, setFilter, setFreHop, setFrequencyMode, setGen2, setInventoryCallback, setProtocol, setRFLink, setTagFocus, startInventoryTag, stopInventory, uhfBlockPermalock, uhfJump2Boot, uhfJump2Boot, uhfStartUpdate, uhfStopUpdate, uhfUpdating, writeData, writeData, writeDataToEpc, writeDataToEpc`

- - ### Method Detail

    - #### getInstance

          public static RFIDWithUHFA4_qcom getInstance()
                                                throws ConfigurationException

      Throws:
        `ConfigurationException`

    - #### free

          public boolean free()

      Description copied from class: `RFIDWithUHFUART_qcom`
      关闭UHF模块
      Switch off UHF module
      Specified by:
        `free` in interface `IUHF`
      Overrides:
        `free` in class `RFIDWithUHFAxBase_qcom`
      Returns:
        true:成功(success) false:失败(failure)

    - #### getANT

          public java.util.List<AntennaState> getANT()

      获取当前设置的天线
      Acquire current antenna
      Specified by:
        `getANT` in interface `IMultipleAntenna`
      Overrides:
        `getANT` in class `RFIDWithUHFAxBase_qcom`
      Returns:
        返回已经设置的天线，下标索引加1表示天线号；下标元素的值如果是1表示已经设置了该天线，0反之；
        Return antenna status that has been setup, index will display antenna number.

    - #### setANT

          public boolean setANT(java.util.List<AntennaState> antStatus)

      设置天线号
      Setup antenna number
      Specified by:
        `setANT` in interface `IMultipleAntenna`
      Overrides:
        `setANT` in class `RFIDWithUHFAxBase_qcom`
      Parameters:
        `antStatus` - 下标索引加1表示天线号；下标元素的值如果是1表示设置该天线，0反之；(Return antenna status that has been setup, index will display antenna number.)
      Returns:
        true:成功(success) false:失败(failure)

    - #### output2Off

          public boolean output2Off()

      gpio 4 off
      Specified by:
        `output2Off` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### output2On

          public boolean output2On()

      gpio 4 on
      Specified by:
        `output2On` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### output1Off

          public boolean output1Off()

      gpio 3 off
      Specified by:
        `output1Off` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### output1On

          public boolean output1On()

      gpio 3 on
      Specified by:
        `output1On` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### inputStatus

          public java.util.List<GPIStateEntity> inputStatus()

      input status
      Specified by:
        `inputStatus` in interface `IRFIDWithUHFA4`
      Returns:
        null:fail ; [0]:input1 , [1]:input2 [2]:OptoCoupler_input3 [3]:OptoCoupler_input4

    - #### output3On

          public boolean output3On()

      gpio OptoCoupler3 on
      Specified by:
        `output3On` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail OPTOCOUPLER

    - #### output3Off

          public boolean output3Off()

      gpio OptoCoupler3 off
      Specified by:
        `output3Off` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### output4On

          public boolean output4On()

      gpio OptoCoupler4 on
      Specified by:
        `output4On` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### output4Off

          public boolean output4Off()

      gpio OptoCoupler4 off
      Specified by:
        `output4Off` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### outputWgData0On

          public boolean outputWgData0On()

      gpio WgData0 on
      Specified by:
        `outputWgData0On` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### outputWgData0Off

          public boolean outputWgData0Off()

      gpio WgData0 off
      Specified by:
        `outputWgData0Off` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### outputWgData1On

          public boolean outputWgData1On()

      gpio WgData1 on
      Specified by:
        `outputWgData1On` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### outputWgData1Off

          public boolean outputWgData1Off()

      gpio WgData1 off
      Specified by:
        `outputWgData1Off` in interface `IRFIDWithUHFA4`
      Returns:
        true;success false:fail

    - #### successNotify

          public void successNotify()

      成功的通知提示(指示灯闪烁同时发出提示音)
      Success Notification Sound (Play notification tune when light flashing)
      Specified by:
        `successNotify` in interface `IURAxOfAndroidUart`
      Overrides:
        `successNotify` in class `RFIDWithUHFAxBase_qcom`

    - #### led

          public void led()

      成功的通知提示(指示灯闪烁)
      Success Notification Sound (flashing light)
      Specified by:
        `led` in interface `IURAxOfAndroidUart`
      Overrides:
        `led` in class `RFIDWithUHFAxBase_qcom`

    - #### buzzer

          public void buzzer()

      成功的通知提示(发出提示音)
      Success Notification Sound (Play Sound)
      Specified by:
        `buzzer` in interface `IURAxOfAndroidUart`
      Overrides:
        `buzzer` in class `RFIDWithUHFAxBase_qcom`